package com.springcloud.alibabanacosconfig.mq.controller;

import com.springcloud.alibabanacosconfig.mq.dto.OrderTradeDTO;
import com.springcloud.alibabanacosconfig.mq.service.OrderTradeServcie;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version V1.0
 * @Author 宋聚智
 * @Date 2019/10/23 15:21
 * @description
 * @Modify By：
 * @ModifyTime： 2019/10/23
 * @Modify marker：
 **/
@RestController
@Slf4j

public class OrderTradeController {
    @Autowired
    OrderTradeServcie orderTradeServcie;
    @GetMapping("createTrade")
    public String createTrade() {
        OrderTradeDTO orderTrade = new OrderTradeDTO();
        orderTrade.setCustomerId(100);
        orderTradeServcie.createTrade(orderTrade);
        return "OK";
    }
}
